fix: add rustls-platform-verifier flag for importing ConfigBuilderExt #276
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello! Thank you so much for actively developing!
I found a (maybe) potential bug when I import
hyper-rustls
withrustls-platform-verifier
feature. Ifhyper-rustls
withrustls-platform-verifier
(+aws-lc-rs
orring
) anddefault-features = false
, we cannot build the following codewith error message: "no method named
with_platform_verifier
found for structConfigBuilder
in the current scope".The reason why this build failure occurs is that in
src/connector/builder.rs
,ConfigBuilderExt
is imported only when either one ofrustls-native-certs
orwebpki-roots
is enabled. Thus, I fixed the code a bit (just added feature flag).Of course I know that feature
rustls-platform-verifier
is not public on README.md and thatnative-tokio
, i.e.,rustls-native-certs
, seems to be prioritized over the feature. But I am very happy if this would be considered! Thank you.Jun